package API.Ramdom;

import java.util.Random;

public class Demo02Random {
    public static void main(String[] args) {
        Random r = new Random();

        //一定注意：左闭右开区间
        for (int i = 0; i <20 ; i++) {
            int i1 = r.nextInt(10);
            System.out.println(i1);
        }
    }
}
